export interface Options {
  // 图表y轴标签距离左侧距离
  distance?: number;

  // 柱状图和图例同行显示的标题
  title?: string;

  // 图例相关
  showLegend?: boolean;
  legendPosition?: 'top' | 'bottom' | 'topRight';

  // x轴坐标相关
  showLabel?: boolean;
  labelLimit?: number;
  labelUnit?: string;

  // 图形值相关
  showValue?: boolean;
  valuePosition?: 'outside' | 'center';

  // 读数相关（包含图形值和tooltip值）
  percentPrecision?: number;

  // y轴名称相关
  showSeriesName?: boolean;
  seriesName?: string;

  // 饼图相关
  pieHighlight?: boolean;
  highlightIndex?: number;
  needSort?: boolean;
  radius?: string[];
  center?: string[];
  /** 标记线 */
  markLine?: any;
  showMarkLine?: boolean;
}

export type XType = 'date' | 'time' | 'normal';

export type YType = 'number' | 'percent';

export interface YTypes {
  line: YType;
  bar: YType;
}
export interface BaseNameDataObject {
  name: string;
  color: string;
  data: number[];
}

export interface BaseNameValueObject {
  name: string;
  value: number;
}
